package com.example.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.example.demo.mapper.UserMapper;
import com.example.demo.pojo.Hello;
import com.example.demo.service.UserService;
@Service
@Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT, timeout = 5)
public class UserServiceImpl implements UserService{

	@Autowired
	UserMapper usermapper;
	
	public List<Hello> allUser() {
		// TODO Auto-generated method stub
		
		return usermapper.allUser();
	}

	public void delete(String id) {
		// TODO Auto-generated method stub
		usermapper.deleteuser(id);
	}

}
